package com.duobaoyu.dby.supply.biz.client.resource;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.duobaoyu.dby.supply.biz.client.resource.bean.dto.TaskAsyncQueryDTO;
import com.duobaoyu.dby.supply.biz.client.resource.bean.vo.TaskExportVO;
import com.duobaoyu.dby.supply.core.task.bean.exporttask.ExcelHeader;
import com.duobaoyu.dby.supply.core.task.bean.exporttask.ExportParam;

import java.util.List;

/**
 * @author liyang
 * @version 1.0.0
 * @ClassName ResourceTaskAsyncAdminClient
 * @Description 渠道异步任务admin client
 * @createTime 15:20:00 2023/10/08
 */
public interface ResourceTaskAsyncAdminClient {

	/**
	 * 异步任务(mq)
	 * @param taskId
	 */
    void asyncTaskHandler(Long taskId);

	/**
	 * 获取可导出列信息
	 * @param bizTaskType
	 * @return
	 */
	List<ExcelHeader> queryExcelHeader(String bizTaskType);

	/**
	 * 异步导出
	 * @param exportParam
	 */
	void asyncExport(ExportParam<String> exportParam);

	/**
	 * 异步导出列表
	 * @param taskAsyncQuery
	 * @return
	 */
    Page<TaskExportVO> queryTaskExportAsyncPage(TaskAsyncQueryDTO taskAsyncQuery);
}
